package com.cskaoyan.bean.common;

import java.math.BigDecimal;

/**
 * 用来放置一些常量，避免魔法值
 *
 * @author zhangYun
 * @since 2022/12/29 00:17
 */
public class Constant {
    /**************************************************************************************************/
// TODO 张云
    public static final String DB_EXCEPTION = "数据库异常";
    public static final String SUCCESS = "成功";
    /**
     * 图片回显base_url
     */
    public static final String BASE_URL = "http://localhost:8083/pic";
    public static final String BASE_MAPPING_LOCATION = "D:/storage";
    public static final String INVALID_LOGIN_STATE = "请先登录";
    /**
     * 成功
     */
    public static final Integer SUCCESS_CODE = 200;
    public static final Integer EXCEPTION_CODE = 10000;

    /**
     * 未付款
     */
    public static final Integer UNPAID_CODE = 101;
    /**
     * 用户取消
     */
    public static final Integer USER_CANCEL_CODE = 102;
    /**
     * 系统取消
     */
    public static final Integer SYSTEM_CANCEL_CODE = 103;
    /**
     * 已付款
     */
    public static final Integer PAID_CODE = 201;
    /**
     * 申请退款
     */
    public static final Integer APPLY_REFUND_CODE = 202;
    /**
     * 已退款
     */
    public static final Integer REFUNDED_CODE = 203;
    /**
     * 已发货
     */
    public static final Integer DELIVER_CODE = 301;
    /**
     * 用户收货
     */
    public static final Integer USER_GET_PACKAGE_CODE = 401;
    /**
     * 系统收货
     */
    public static final Integer SYSTEM_GET_PACKAGE_CODE = 402;
    public static final String UNPAID = "未付款";

    public static final String PAID = "已付款";
    public static final String DELIVERED = "已发货";
    public static final String USER_GET_PACKAGE = "用户收货";
    public static final BigDecimal DEFAULT_VALUE = new BigDecimal(0);
    public static final String USER_CANCEL = "订单已取消";
    public static final String SYSTEM_CANCEL = "系统取消";
    public static final String APPLY_REFUND = "订单取消，退款中";
    public static final String REFUNDED = "已退款";
    public static final String SYSTEM_GET_PACKAGE = "系统收货";
    public static final Integer ORDER_DELETED = 404;
    public static final String ORDER_DELETED_CODE = "订单已删除";
// TODO 张云
/**************************************************************************************************/

/**************************************************************************************************/
// TODO 吴新广龙
    public static final Integer DEFAULT_FIRST_CATALOG_LV1_ID = 1005000;
    public static final String FIRST_LEVLE = "L1";
    public static final Integer DEFAULT_KEYWORD_ID = 1;
    public static final Integer DEFAULT_PAGEHANDLER_LIMIT = 4;
    public static final Integer DEFAULT_PAGEHANDLER_PAGE = 1;

// TODO 吴新广龙
/**************************************************************************************************/



/**************************************************************************************************/
// TODO 王俊杰
    //微信小程序中点击商品后的分页默认page和limit
    public static final Integer WX_GOODS_PAGE_CODE = 1;
    public static final Integer WX_GOODS_LIMIT_CODE = 6;

    //未登录状态下的userId
    public static final Integer WX_DEFAULT_USERID_CODE = 0;

    //未登录状态下的分享权限--禁止分享
    public static final Boolean WX_DEFAULT_SHARE_CODE = false;

    //商品分类中的父类(主类)cid
    public static final Integer WX_GOODS_FATHERCATEGORY_CID_CODE = 0;

// TODO 王俊杰
/**************************************************************************************************/
}
